package jwr;

import java.awt.GridLayout;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;

public class GridLayoutE extends JFrame{
	public GridLayoutE() {
		setVisible(true);
		setDefaultCloseOperation(this.EXIT_ON_CLOSE);
		setSize(300, 200);
		setLayout(new GridLayout(4, 2,5,5));
		add(new JLabel("이름"));
		add(new JTextField());
		add(new JLabel("학번"));
		add(new JTextField());
		add(new JLabel("학과"));
		add(new JTextField());
		add(new JLabel("과목"));
		add(new JTextField());
	}
	public static void main(String[] args) {
		new GridLayoutE();
	}

}
